package com.jungle.test.controller;


import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Jungle
 * @create 2023-09-04 18:07
 * 配置undertow服务器
 */
@Slf4j
@RestController
public class CaffeineController {
    @Value("${server.port}")
    private Integer port;

    @GetMapping("/test")
    public String hello() {
        log.info("请求成功，端口号==>{}", port);
        return "hello==>" + port;
    }
}
